package com.defangit.award.domain;

import java.time.LocalDateTime;

/**
 * Created by zhangfagen on 2018/12/30.
 */
public class WinningInfo {
    private int id;
    private String openId;
    private LocalDateTime winTime;
    private LocalDateTime attendTime=LocalDateTime.now();
    private int awardId;
    private Prize prize;
    private WinningStatus status=WinningStatus.ATTENDED;

    public int getId() {
        return id;
    }

    public WinningInfo setId(int id) {
        this.id = id;
        return this;
    }

    public String getOpenId() {
        return openId;
    }

    public WinningInfo setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public Prize getPrize() {
        return prize;
    }

    public WinningInfo setPrize(Prize prize) {
        this.prize = prize;
        return this;
    }

    public LocalDateTime getWinTime() {
        return winTime;
    }

    public WinningInfo setWinTime(LocalDateTime winTime) {
        this.winTime = winTime;
        return this;
    }

    public WinningStatus getStatus() {
        return status;
    }

    public WinningInfo setStatus(WinningStatus status) {
        this.status = status;
        return this;
    }

    public LocalDateTime getAttendTime() {
        return attendTime;
    }

    public WinningInfo setAttendTime(LocalDateTime attendTime) {
        this.attendTime = attendTime;
        return this;
    }

    public int getAwardId() {
        return awardId;
    }

    public WinningInfo setAwardId(int awardId) {
        this.awardId = awardId;
        return this;
    }
}
